package com.hxzy.controller.front.mapstruct;

import com.hxzy.controller.front.merchandiser.req.MerchandiserAddReq;
import com.hxzy.controller.front.merchandiser.req.MerchandiserEditReq;
import com.hxzy.controller.front.merchandiser.resp.EnterpriseProcessResp;
import com.hxzy.controller.front.merchandiser.resp.FrontMerchandiserResp;
import com.hxzy.entity.EnterpriseProcess;
import com.hxzy.entity.Merchandiser;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Desc 描述
 * @Author: admin
 * @Date: 2023/07/10/15:53
 */
@Mapper
public interface MerchandiserConvert {
    MerchandiserConvert INSTANCE= Mappers.getMapper(MerchandiserConvert.class);

    Merchandiser convert(MerchandiserAddReq req);

    FrontMerchandiserResp convert(Merchandiser entity);

    Merchandiser convert(MerchandiserEditReq req);

    List<EnterpriseProcessResp> convert(List<EnterpriseProcess> list);
}
